﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Gdmec.UI
{
    public class UIManager : MonoBehaviour
    {
        public static UIManager Instance { get; private set; }
        public static Transform UIRoot { get { return Instance.uiroot; } }

        private Transform uiroot;
        void Awake()
        {
            Instance = this;
        }
        void OnDestroy()
        {
            Instance.uiroot = null;
            Instance = null;
        }

        public static void SetUIRoot(Transform root)
        {
            Instance.uiroot = root;
        }

    }
}
